/*
 * config_dialog.h
 *
 *  Created on: 11.08.2013
 *      Author: SpirTanol
 */

#ifndef CONFIG_DIALOG_H_
#define CONFIG_DIALOG_H_

#include "global.h"

// Qt
#include <QDialog>

class QCheckBox;
class QRadioButton;
class QSpinBox;

class ConfigDialog : public QDialog
{
	Q_OBJECT

public:
	ConfigDialog(bool autoConnect, ScaleType scaleType, uint interval);
	~ConfigDialog() {}

	bool autoConnect() const;
	ScaleType scaleType() const;
	uint interval() const;

private:
	ScaleType mScaleType;
	bool mAutoConnect;

	QCheckBox *oCheckAutoConnect;
	QRadioButton *oRadioScaleType[2];

	QSpinBox *oSpinMinute;
	QSpinBox *oSpinHour;
	QSpinBox *oSpinDay;

};

#endif /* CONFIG_DIALOG_H_ */
